#include "mondialoguefloumoyennage.h"
#include "ui_mondialoguefloumoyennage.h"

MonDialogueFlouMoyennage::MonDialogueFlouMoyennage(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MonDialogueFlouMoyennage)
{
    ui->setupUi(this);
    ui->lcdNumber->display(3);

    QObject::connect(ui->horizontalSlider, SIGNAL(valueChanged(int)), this, SLOT(majLCDNumber(int)));
}

MonDialogueFlouMoyennage::~MonDialogueFlouMoyennage()
{
    delete ui;
}

int MonDialogueFlouMoyennage::getTailleNoyau(){
    return this->ui->lcdNumber->value();
}

void MonDialogueFlouMoyennage::majLCDNumber(int taille){
    this->ui->lcdNumber->display(taille*2+1);
}
